package com.ynet.middleground.riskmanage.bean;

import javax.validation.constraints.NotEmpty;

import com.ynet.core.common.BaseReqObj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 获取文件
 * @date 2020-09-11 16:30:21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "获取文件请求信息", description = "获取文件请求信息")
public class GetFileReq extends BaseReqObj {

    private static final long serialVersionUID = -3203508777938778478L;

    @ApiModelProperty(value = "文件 OSS 短路径地址(包含 Bucket) \n  如：zhongtai/file.pdf",
        notes = "文件 OSS 短路径地址(包含 Bucket) \n  如：zhongtai/file.pdf", dataType = "String", required = true)
    @NotEmpty(message = "文件地址不能为空")
    private String url;

}
